from tkinter import *
x = int(input())
y = int(input())
n = int(input())
if 60*n+x > 500 or 40*n+y > 500:
    print('Размер фигуры превышает максимальный размер')
else:
    a = [0*n+x,0*n+y,20*n+x,0*n+y,20*n+x,20*n+y,40*n+x,20*n+y,40*n+x,0*n+y,60*n+x,0*n+y,60*n+x,40*n+y,0*n+x,40*n+y]
    root = Tk()
    root.title('ИТ марафон')
    root.geometry("500x500")
    canvas = Canvas(bg = "white" , width = 500 , height = 500)
    canvas.pack(anchor = CENTER, expand = 1)
    canvas.create_polygon(a, fill = "blue")
    root.mainloop()